/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pck_tramitedocu.pck_src.pck_utiles;

import java.io.FileInputStream;
import java.util.Properties;

/**
 *
 * @author Hugo
 */
public class ParametroConfig {
    
    public static String IP_WERSERVICE;
    public static String PORT_WEBSERVICE;
    public static String URL_APACHE;
    public static String SERVER_IP;
    public static String SERVER_PORT;
    public static String URL_SERVER;
    public static String CONTEXT_PATH;
    
    static{
        Properties prop = new Properties();
        try {
            prop.load(new FileInputStream("/opt/aplicaciones/tramitedocuweb/propiedades.properties"));
            IP_WERSERVICE = prop.getProperty("app.ipwebservice");
            PORT_WEBSERVICE = prop.getProperty("app.portwebservice");
            URL_APACHE = prop.getProperty("app.urlapache");
            SERVER_IP = prop.getProperty("app.ip");
            SERVER_PORT = prop.getProperty("app.port");
            CONTEXT_PATH = prop.getProperty("app.contextpath");
            URL_SERVER = SERVER_IP + SERVER_PORT + CONTEXT_PATH;
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    
}
